package com.cw.jeeyt.service.intf.api;

import java.util.List;

import com.cw.jeeyt.common.Order;
import com.cw.jeeyt.service.bo.api.ApiFacadeObjParamBo;
import com.cw.lang.mybatis.dto.PageInfo;

/**
 * 接口方法参数对象具体参数业务接口
  * @author chenw
 * @version 1.0.0
 */
public interface ApiFacadeObjParamService {
    /**
     * 查询所有接口方法参数对象具体参数列表信息
     */
    List<ApiFacadeObjParamBo> queryApiFacadeObjParamList() throws Exception;

    /**
     * 删除接口方法参数对象具体参数
     *
     * @param apiFacadeObjParamBo
     */
    void delete(ApiFacadeObjParamBo apiFacadeObjParamBo) throws Exception;

    /**
     * 更新接口方法参数对象具体参数
     *
     * @param apiFacadeObjParamBo
     */
    void update(ApiFacadeObjParamBo apiFacadeObjParamBo) throws Exception;

    /**
     * 更新接口方法参数对象具体参数不为空的字段
     *
     * @param apiFacadeObjParamBo
     */
    void updateSelective(ApiFacadeObjParamBo apiFacadeObjParamBo) throws Exception;

    /**
     * 根据主键查询接口方法参数对象具体参数
     *
     * @return
     */
    ApiFacadeObjParamBo getApiFacadeObjParamById(Long id) throws Exception;

    /**
     * 新增接口方法参数对象具体参数
     *
     * @param apiFacadeObjParamBo
     * @return
     */
    Integer insert(ApiFacadeObjParamBo apiFacadeObjParamBo) throws Exception;

    /**
     * 新增接口方法参数对象具体参数不为空的字段
     *
     * @param apiFacadeObjParamBo
     * @return
     */
    Integer insertSelective(ApiFacadeObjParamBo apiFacadeObjParamBo) throws Exception;

    /**
     * 分页查询接口方法参数对象具体参数
     *
     * @param apiFacadeObjParamBo
     * @param pageNo
     * @param pageSize
     * @return
     * @throws Exception
     */
    PageInfo<ApiFacadeObjParamBo> queryByPage(ApiFacadeObjParamBo apiFacadeObjParamBo, Integer pageNo, Integer pageSize,
        Order order) throws Exception;

    /**
     * 导入接口方法对象字段信息
     *
     * @param dataEntryIds
     * @param objId
     */
    boolean importDataEntry(String dataEntryIds, Long objId) throws Exception;

    /**
     * 批量保存接口方法对象字段信息
     *
     * @param apiFacadeObjParamList
     * @return
     * @throws Exception
     */
    boolean insertBat(List<ApiFacadeObjParamBo> apiFacadeObjParamList) throws Exception;

    /**
     * 根据对象id查询对象参数集合信息
     *
     * @param objId
     */
    List<ApiFacadeObjParamBo> queryListByObjId(Long objId);
}
